<template>
  <div class="page-404">
    <n-result status="404" title="404 资源不存在" description="生活总归带点荒谬">
      <template #footer>
        <n-button @click="router.back()">返回</n-button>
      </template>
    </n-result>
  </div>
</template>

<script setup>
import { NResult } from 'naive-ui'
import { useRouter } from 'vue-router'
const router = useRouter()
</script>

<style scoped>
.page-404 {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
